package lily.com.app;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;

public class StartActivity extends Activity {
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		SharedPreferences pref = this.getSharedPreferences("PREFERENCE",Context.MODE_WORLD_WRITEABLE);  
        boolean isFirstLoad = pref.getBoolean("isFirstLoad", true);
        if(isFirstLoad){
        	Intent intent = new Intent();
        	intent.setClass(this, GuideFirstActivity.class);
        	startActivity(intent);
        	this.finish();
        }
        else{
        	Intent intent = new Intent();
        	intent.setClass(this, MainActivity.class);
        	startActivity(intent);
        	this.finish();
        }
	}
}
